package org.wang.pattern.struct.proxy;

public class ProxyPerson implements Person {

	private Person person;
	
	public ProxyPerson(){
		person = new PersionImpl();
	}
	
	@Override
	public void getName() {
		System.out.println("Proxy getName");
		person.getName();
	}

	@Override
	public void getAge() {
		System.out.println("Proxy getAge");
		person.getAge();
	}

}
